package se.liu.oschi129.font.fontspace;

import java.awt.Font;

import se.liu.oschi129.font.TextFont;
import se.liu.oschi129.font.TextFontIOException;

/**
 * All fonts used in the game should be subclasses to this abstract class.
 * 
 * @author oschi129
 */
public abstract class FontResource {
	
	private TextFont font;
	
	public FontResource(String name) {
		try {
			font = new TextFont(name);
		} catch (TextFontIOException e) {
			e.printStackTrace();
		}
	}
	
	public Font getFont(float size) {
		return font.getFont(size);
	}

}
